Skip to main content

is not in

Type

operator

Summary

Compares two strings and evaluates to true if the second does not contain the first, false if it does.

Syntax

<subString> is not in <string>

Description

Use the is not in operator to find out whether a string does not contain a substring.

The expression firstString is not in secondString is equivalent to

    not (secondString contains firstString)

The is not in operator is the logical inverse of the is in operator. When one is true, the other is false.

Parameters

NameTypeDescription

substring

string

The substring and string are both strings, or expressions that evaluate to strings.

string

string

Examples

"S" is not in "BSD" -- evaluates to false

glossary: evaluate, string, operator

keyword: string

operator: contains, is in

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?